package com.pug.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LoginController {

    @GetMapping("/toLogin")
    public String login(){
        return "login";
    }

    @GetMapping("/fail")
    public String fail(String msg, ModelMap modelMap){
        modelMap.put("msg",msg);
        return "fail";
    }

    @GetMapping("/nopermission")
    public String nopermission(){
        return "nopermission";
    }


}
